package cn.ce.core.interfaces;

import java.util.List;
import java.util.Map;

import org.apache.shiro.authc.SimpleAuthenticationInfo;

import cn.ce.common.vo.ShiroUser;
import cn.ce.common.vo.User;

/**
 * 定义shirorealm所需数据的接口
 *
 */
public interface IShiro {
	User user(String account);

	ShiroUser shiroUser(User user);

	List<Map<String, Object>> findPermissionsByRoleId(Object userId, String roleId);

	String findRoleNameByRoleId(String roleId);
	
	SimpleAuthenticationInfo info(ShiroUser shiroUser, User user, String realmName);
}
